<?php
require_once 'global.php';

$view = 'items/whatnew.html';

if ($_SERVER['PATH_INFO']) {
    $data = explode("/", $_SERVER['PATH_INFO']);
    $_REQUEST['xml'] = trim($data[1]);
    if ($_REQUEST['xml'] == 'xml')
        $view = 'xml/whatnew.xml';
    else
        $_REQUEST['p'] = (int)$_REQUEST['xml'];

    if ($_REQUEST['ajax']) $view = 'items/whatnew.ajax.html';
}

$Controller =& getController('items');
$View = $Controller->getView('whatnew');
$View->display($view);
?>
